<!doctype html>
<html lang="">
<head>
  <title>tpl</title>
  <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
  <style>
    *, *::before, *::after {
      -webkit-box-sizing: border-box;
    }

    ul {
      margin: 0;
      padding: 0;
    }

    ul > li {
      list-style: none;
    }

    input[type="checkbox"], input[type='radio'] {
      display: none;
    }

    header {
      text-align: center;
      background: #F4FBFE;
    }

    main {
      background: #F4FBFE;
      animation-name: slide-in-right;
      animation-duration: 1s;
      animation-timing-function: ease;
      animation-delay: 0s;
      animation-iteration-count: 1;
      animation-direction: normal;
      animation-fill-mode: none;
    }
    @keyframes slide-in-right {
      0%{
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
      }
      100%{
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
      }
    }
    main > label {
      position: relative;
      height: 40px;
      width: 100%;
      text-align: left;
      line-height: 40px;
      background: rgba(216, 228, 247, 1);
      font-size: 16px;
      font-weight: bold;
      color: rgba(31, 121, 255, 1);
      display: inline-block;
      padding-left: 20px;
      border-radius: 5px;
    }

    label:hover {
      cursor: pointer;
    }

    aside label {
      position: relative;
    }

    aside label:hover::before {
      content: '';
      width: 0;
      height: 5px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -7px;
      background: #D8D8D8;
      animation: leftmove 0.5s linear 0s forwards;
    }

    @keyframes leftmove {
      0% {
        width: 0;
      }
      100% {
        width: 50px;
        background: #b3b1b1;;
      }
    }

    .box {
      position: relative;
      display: none;
      background: white;
    }

    input[type="checkbox"] + .box {
      display: none;
    }

    input[type="checkbox"]:checked + .box {
      display: block;
    }

    input[type="radio"] + .sub-box {
      display: none;
    }

    input[type="radio"]:checked + .sub-box {
      display: block;
    }

    .subBox {
      position: relative;
      width: 100%;
    }

    table {
      border-collapse: collapse;
      width: 100%;
      text-align: center;
    }

    thead tr {
      background: #4f81bd;
      color: white;
      font-size: 1rem;
    }

    tfoot td {
      color: rgba(48, 49, 51, 1);
      background: rgba(236, 236, 236, 1);
      font-weight: bold;
    }

    table tbody tr {
      background: #fff;
      border-bottom: 1px solid #E4E7ED;
    }

    table td {
      border-right: 1px solid #E4E7ED;
      font-size: 0.7rem;
    }

    ul {
      width: 100%;
    }

    ul > li {
      width: 150px;
      text-align: center;
      float: left;
      margin-top: 10px;
    }

    .new {
      color: #67c23a;
      background: #f0f9eb;
      border-color: #c2e7b0;
      height: 25px;
      line-height: 15px;
      padding: 5px 10px;
      border-radius: 5px;
    }

    .reUse {
      color: #f56c6c;
      background: #fef0f0;
      border-color: #fbc4c4;
      height: 25px;
      line-height: 15px;
      padding: 5px 10px;
      border-radius: 5px;
    }

    .typeChange {
      color: #409eff;
      background: #ecf5ff;
      border-color: #b3d8ff;
      height: 25px;
      line-height: 15px;
      padding: 5px 10px;
      border-radius: 5px;
    }

    .del {
      color: #909399;
      background: #f4f4f5;
      border-color: #d3d4d6;
      height: 25px;
      line-height: 15px;
      padding: 5px 10px;
      border-radius: 5px;
    }

    .appChange {
      color: #e6a23c;
      background: #fdf6ec;
      border-color: #f5dab1;
      height: 25px;
      line-height: 15px;
      padding: 5px 10px;
      border-radius: 5px;
    }

    blockquote {
      position: absolute;
      width: 95vw;
      left: 0px;
      top: 30px;
    }

    i {
      position: absolute;
      color: red;
      font-size: 10px;
      top: 0;
      right: 0;
      width: 10px;
    }
  </style>
</head>
<body>
<header>
  <h1>自动发现资源异常数据汇总-#{batch}</h1>
</header>
<main>
  <label for="tab1" id="tab11">1、组件异常列表</label>
  <input type="checkbox" id="tab1" checked/>
  <aside class="box">
    <div class="subBox">
      <ul>
        <li>
          <!-- name必须相同,for元素必须绑定id -->
          <label for="sub-tab01" class="reUse">组件IP为空</label>
          <input type="radio" name="tab0" id="sub-tab01" checked/>
          <blockquote class="sub-box">
            <table class="myTable" cellspacing="0">
              <thead>
              <tr>
                <th>ID</th>
                <th>组件类型</th>
                <th>端口</th>
                <th>路径</th>
                <th>版本号</th>
              </tr>
              </thead>
              <tbody>
              <tr>
                <td>ID</td>
                <td>组件类型</td>
                <td>端口</td>
                <td>路径</td>
                <td>版本号</td>
              </tr>
              <tr>
                <td>ID</td>
                <td>组件类型</td>
                <td>端口</td>
                <td>路径</td>
                <td>版本号</td>
              </tr>
              </tbody>
            </table>
          </blockquote>
        </li>

        <li>
          <!-- name必须相同,for元素必须绑定id -->
          <label for="sub-tab02" class="new">路径和端口为空</label>
          <input type="radio" name="tab0" id="sub-tab02"/>
          <blockquote class="sub-box">
            <table class="myTable" cellspacing="0">
              <thead>
              <tr>
                <th>ID</th>
                <th>IP</th>
                <th>组件类型</th>
                <th>版本号</th>
              </tr>
              </thead>
              <tbody>
              <tr>
                <td>ID</td>
                <td>IP</td>
                <td>组件类型</td>
                <td>版本号</td>
              </tr>
              <tr>
                <td>ID</td>
                <td>IP</td>
                <td>组件类型</td>
                <td>版本号</td>
              </tr>
              </tbody>
            </table>
          </blockquote>
        </li>
      </ul>
    </div>
  </aside>
</main>
</body>
</html>
